/*
 * MIT License
 *
 * Copyright (c) 2023 OrdinaryRoad
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in all
 * copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 * SOFTWARE.
 */

// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: douyin.proto

// Protobuf Java Version: 3.25.3
package tech.ordinaryroad.live.chat.client.codec.douyin.protobuf;

/**
 * Protobuf type {@code ProductChangeMessage}
 */
public final class ProductChangeMessage extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:ProductChangeMessage)
    ProductChangeMessageOrBuilder {
private static final long serialVersionUID = 0L;
  // Use ProductChangeMessage.newBuilder() to construct.
  private ProductChangeMessage(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
    super(builder);
  }
  private ProductChangeMessage() {
    updateToast_ = "";
    updateProductInfoList_ = java.util.Collections.emptyList();
    updateCategoryInfoList_ = java.util.Collections.emptyList();
  }

  @java.lang.Override
  @SuppressWarnings({"unused"})
  protected java.lang.Object newInstance(
      UnusedPrivateParameter unused) {
    return new ProductChangeMessage();
  }

  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.Douyin.internal_static_ProductChangeMessage_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.Douyin.internal_static_ProductChangeMessage_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.ProductChangeMessage.class, tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.ProductChangeMessage.Builder.class);
  }

  private int bitField0_;
  public static final int COMMON_FIELD_NUMBER = 1;
  private tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.Common common_;
  /**
   * <code>.Common common = 1;</code>
   * @return Whether the common field is set.
   */
  @java.lang.Override
  public boolean hasCommon() {
    return ((bitField0_ & 0x00000001) != 0);
  }
  /**
   * <code>.Common common = 1;</code>
   * @return The common.
   */
  @java.lang.Override
  public tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.Common getCommon() {
    return common_ == null ? tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.Common.getDefaultInstance() : common_;
  }
  /**
   * <code>.Common common = 1;</code>
   */
  @java.lang.Override
  public tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.CommonOrBuilder getCommonOrBuilder() {
    return common_ == null ? tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.Common.getDefaultInstance() : common_;
  }

  public static final int UPDATETIMESTAMP_FIELD_NUMBER = 2;
  private long updateTimestamp_ = 0L;
  /**
   * <code>int64 updateTimestamp = 2;</code>
   * @return The updateTimestamp.
   */
  @java.lang.Override
  public long getUpdateTimestamp() {
    return updateTimestamp_;
  }

  public static final int UPDATETOAST_FIELD_NUMBER = 3;
  @SuppressWarnings("serial")
  private volatile java.lang.Object updateToast_ = "";
  /**
   * <code>string updateToast = 3;</code>
   * @return The updateToast.
   */
  @java.lang.Override
  public java.lang.String getUpdateToast() {
    java.lang.Object ref = updateToast_;
    if (ref instanceof java.lang.String) {
      return (java.lang.String) ref;
    } else {
      com.google.protobuf.ByteString bs = 
          (com.google.protobuf.ByteString) ref;
      java.lang.String s = bs.toStringUtf8();
      updateToast_ = s;
      return s;
    }
  }
  /**
   * <code>string updateToast = 3;</code>
   * @return The bytes for updateToast.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getUpdateToastBytes() {
    java.lang.Object ref = updateToast_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      updateToast_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int UPDATEPRODUCTINFOLIST_FIELD_NUMBER = 4;
  @SuppressWarnings("serial")
  private java.util.List<tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.ProductInfo> updateProductInfoList_;
  /**
   * <code>repeated .ProductInfo updateProductInfoList = 4;</code>
   */
  @java.lang.Override
  public java.util.List<tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.ProductInfo> getUpdateProductInfoListList() {
    return updateProductInfoList_;
  }
  /**
   * <code>repeated .ProductInfo updateProductInfoList = 4;</code>
   */
  @java.lang.Override
  public java.util.List<? extends tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.ProductInfoOrBuilder> 
      getUpdateProductInfoListOrBuilderList() {
    return updateProductInfoList_;
  }
  /**
   * <code>repeated .ProductInfo updateProductInfoList = 4;</code>
   */
  @java.lang.Override
  public int getUpdateProductInfoListCount() {
    return updateProductInfoList_.size();
  }
  /**
   * <code>repeated .ProductInfo updateProductInfoList = 4;</code>
   */
  @java.lang.Override
  public tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.ProductInfo getUpdateProductInfoList(int index) {
    return updateProductInfoList_.get(index);
  }
  /**
   * <code>repeated .ProductInfo updateProductInfoList = 4;</code>
   */
  @java.lang.Override
  public tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.ProductInfoOrBuilder getUpdateProductInfoListOrBuilder(
      int index) {
    return updateProductInfoList_.get(index);
  }

  public static final int TOTAL_FIELD_NUMBER = 5;
  private long total_ = 0L;
  /**
   * <code>int64 total = 5;</code>
   * @return The total.
   */
  @java.lang.Override
  public long getTotal() {
    return total_;
  }

  public static final int UPDATECATEGORYINFOLIST_FIELD_NUMBER = 8;
  @SuppressWarnings("serial")
  private java.util.List<tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.CategoryInfo> updateCategoryInfoList_;
  /**
   * <code>repeated .CategoryInfo updateCategoryInfoList = 8;</code>
   */
  @java.lang.Override
  public java.util.List<tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.CategoryInfo> getUpdateCategoryInfoListList() {
    return updateCategoryInfoList_;
  }
  /**
   * <code>repeated .CategoryInfo updateCategoryInfoList = 8;</code>
   */
  @java.lang.Override
  public java.util.List<? extends tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.CategoryInfoOrBuilder> 
      getUpdateCategoryInfoListOrBuilderList() {
    return updateCategoryInfoList_;
  }
  /**
   * <code>repeated .CategoryInfo updateCategoryInfoList = 8;</code>
   */
  @java.lang.Override
  public int getUpdateCategoryInfoListCount() {
    return updateCategoryInfoList_.size();
  }
  /**
   * <code>repeated .CategoryInfo updateCategoryInfoList = 8;</code>
   */
  @java.lang.Override
  public tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.CategoryInfo getUpdateCategoryInfoList(int index) {
    return updateCategoryInfoList_.get(index);
  }
  /**
   * <code>repeated .CategoryInfo updateCategoryInfoList = 8;</code>
   */
  @java.lang.Override
  public tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.CategoryInfoOrBuilder getUpdateCategoryInfoListOrBuilder(
      int index) {
    return updateCategoryInfoList_.get(index);
  }

  private byte memoizedIsInitialized = -1;
  @java.lang.Override
  public final boolean isInitialized() {
    byte isInitialized = memoizedIsInitialized;
    if (isInitialized == 1) return true;
    if (isInitialized == 0) return false;

    memoizedIsInitialized = 1;
    return true;
  }

  @java.lang.Override
  public void writeTo(com.google.protobuf.CodedOutputStream output)
                      throws java.io.IOException {
    if (((bitField0_ & 0x00000001) != 0)) {
      output.writeMessage(1, getCommon());
    }
    if (updateTimestamp_ != 0L) {
      output.writeInt64(2, updateTimestamp_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(updateToast_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 3, updateToast_);
    }
    for (int i = 0; i < updateProductInfoList_.size(); i++) {
      output.writeMessage(4, updateProductInfoList_.get(i));
    }
    if (total_ != 0L) {
      output.writeInt64(5, total_);
    }
    for (int i = 0; i < updateCategoryInfoList_.size(); i++) {
      output.writeMessage(8, updateCategoryInfoList_.get(i));
    }
    getUnknownFields().writeTo(output);
  }

  @java.lang.Override
  public int getSerializedSize() {
    int size = memoizedSize;
    if (size != -1) return size;

    size = 0;
    if (((bitField0_ & 0x00000001) != 0)) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(1, getCommon());
    }
    if (updateTimestamp_ != 0L) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt64Size(2, updateTimestamp_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(updateToast_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, updateToast_);
    }
    for (int i = 0; i < updateProductInfoList_.size(); i++) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(4, updateProductInfoList_.get(i));
    }
    if (total_ != 0L) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt64Size(5, total_);
    }
    for (int i = 0; i < updateCategoryInfoList_.size(); i++) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(8, updateCategoryInfoList_.get(i));
    }
    size += getUnknownFields().getSerializedSize();
    memoizedSize = size;
    return size;
  }

  @java.lang.Override
  public boolean equals(final java.lang.Object obj) {
    if (obj == this) {
     return true;
    }
    if (!(obj instanceof tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.ProductChangeMessage)) {
      return super.equals(obj);
    }
    tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.ProductChangeMessage other = (tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.ProductChangeMessage) obj;

    if (hasCommon() != other.hasCommon()) return false;
    if (hasCommon()) {
      if (!getCommon()
          .equals(other.getCommon())) return false;
    }
    if (getUpdateTimestamp()
        != other.getUpdateTimestamp()) return false;
    if (!getUpdateToast()
        .equals(other.getUpdateToast())) return false;
    if (!getUpdateProductInfoListList()
        .equals(other.getUpdateProductInfoListList())) return false;
    if (getTotal()
        != other.getTotal()) return false;
    if (!getUpdateCategoryInfoListList()
        .equals(other.getUpdateCategoryInfoListList())) return false;
    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
    return true;
  }

  @java.lang.Override
  public int hashCode() {
    if (memoizedHashCode != 0) {
      return memoizedHashCode;
    }
    int hash = 41;
    hash = (19 * hash) + getDescriptor().hashCode();
    if (hasCommon()) {
      hash = (37 * hash) + COMMON_FIELD_NUMBER;
      hash = (53 * hash) + getCommon().hashCode();
    }
    hash = (37 * hash) + UPDATETIMESTAMP_FIELD_NUMBER;
    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
        getUpdateTimestamp());
    hash = (37 * hash) + UPDATETOAST_FIELD_NUMBER;
    hash = (53 * hash) + getUpdateToast().hashCode();
    if (getUpdateProductInfoListCount() > 0) {
      hash = (37 * hash) + UPDATEPRODUCTINFOLIST_FIELD_NUMBER;
      hash = (53 * hash) + getUpdateProductInfoListList().hashCode();
    }
    hash = (37 * hash) + TOTAL_FIELD_NUMBER;
    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
        getTotal());
    if (getUpdateCategoryInfoListCount() > 0) {
      hash = (37 * hash) + UPDATECATEGORYINFOLIST_FIELD_NUMBER;
      hash = (53 * hash) + getUpdateCategoryInfoListList().hashCode();
    }
    hash = (29 * hash) + getUnknownFields().hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.ProductChangeMessage parseFrom(
      java.nio.ByteBuffer data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.ProductChangeMessage parseFrom(
      java.nio.ByteBuffer data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.ProductChangeMessage parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.ProductChangeMessage parseFrom(
      com.google.protobuf.ByteString data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.ProductChangeMessage parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.ProductChangeMessage parseFrom(
      byte[] data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.ProductChangeMessage parseFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.ProductChangeMessage parseFrom(
      java.io.InputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input, extensionRegistry);
  }

  public static tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.ProductChangeMessage parseDelimitedFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseDelimitedWithIOException(PARSER, input);
  }

  public static tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.ProductChangeMessage parseDelimitedFrom(
      java.io.InputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
  }
  public static tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.ProductChangeMessage parseFrom(
      com.google.protobuf.CodedInputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.ProductChangeMessage parseFrom(
      com.google.protobuf.CodedInputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input, extensionRegistry);
  }

  @java.lang.Override
  public Builder newBuilderForType() { return newBuilder(); }
  public static Builder newBuilder() {
    return DEFAULT_INSTANCE.toBuilder();
  }
  public static Builder newBuilder(tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.ProductChangeMessage prototype) {
    return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
  }
  @java.lang.Override
  public Builder toBuilder() {
    return this == DEFAULT_INSTANCE
        ? new Builder() : new Builder().mergeFrom(this);
  }

  @java.lang.Override
  protected Builder newBuilderForType(
      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
    Builder builder = new Builder(parent);
    return builder;
  }
  /**
   * Protobuf type {@code ProductChangeMessage}
   */
  public static final class Builder extends
      com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
      // @@protoc_insertion_point(builder_implements:ProductChangeMessage)
      tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.ProductChangeMessageOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.Douyin.internal_static_ProductChangeMessage_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.Douyin.internal_static_ProductChangeMessage_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.ProductChangeMessage.class, tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.ProductChangeMessage.Builder.class);
    }

    // Construct using tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.ProductChangeMessage.newBuilder()
    private Builder() {
      maybeForceBuilderInitialization();
    }

    private Builder(
        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      super(parent);
      maybeForceBuilderInitialization();
    }
    private void maybeForceBuilderInitialization() {
      if (com.google.protobuf.GeneratedMessageV3
              .alwaysUseFieldBuilders) {
        getCommonFieldBuilder();
        getUpdateProductInfoListFieldBuilder();
        getUpdateCategoryInfoListFieldBuilder();
      }
    }
    @java.lang.Override
    public Builder clear() {
      super.clear();
      bitField0_ = 0;
      common_ = null;
      if (commonBuilder_ != null) {
        commonBuilder_.dispose();
        commonBuilder_ = null;
      }
      updateTimestamp_ = 0L;
      updateToast_ = "";
      if (updateProductInfoListBuilder_ == null) {
        updateProductInfoList_ = java.util.Collections.emptyList();
      } else {
        updateProductInfoList_ = null;
        updateProductInfoListBuilder_.clear();
      }
      bitField0_ = (bitField0_ & ~0x00000008);
      total_ = 0L;
      if (updateCategoryInfoListBuilder_ == null) {
        updateCategoryInfoList_ = java.util.Collections.emptyList();
      } else {
        updateCategoryInfoList_ = null;
        updateCategoryInfoListBuilder_.clear();
      }
      bitField0_ = (bitField0_ & ~0x00000020);
      return this;
    }

    @java.lang.Override
    public com.google.protobuf.Descriptors.Descriptor
        getDescriptorForType() {
      return tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.Douyin.internal_static_ProductChangeMessage_descriptor;
    }

    @java.lang.Override
    public tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.ProductChangeMessage getDefaultInstanceForType() {
      return tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.ProductChangeMessage.getDefaultInstance();
    }

    @java.lang.Override
    public tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.ProductChangeMessage build() {
      tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.ProductChangeMessage result = buildPartial();
      if (!result.isInitialized()) {
        throw newUninitializedMessageException(result);
      }
      return result;
    }

    @java.lang.Override
    public tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.ProductChangeMessage buildPartial() {
      tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.ProductChangeMessage result = new tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.ProductChangeMessage(this);
      buildPartialRepeatedFields(result);
      if (bitField0_ != 0) { buildPartial0(result); }
      onBuilt();
      return result;
    }

    private void buildPartialRepeatedFields(tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.ProductChangeMessage result) {
      if (updateProductInfoListBuilder_ == null) {
        if (((bitField0_ & 0x00000008) != 0)) {
          updateProductInfoList_ = java.util.Collections.unmodifiableList(updateProductInfoList_);
          bitField0_ = (bitField0_ & ~0x00000008);
        }
        result.updateProductInfoList_ = updateProductInfoList_;
      } else {
        result.updateProductInfoList_ = updateProductInfoListBuilder_.build();
      }
      if (updateCategoryInfoListBuilder_ == null) {
        if (((bitField0_ & 0x00000020) != 0)) {
          updateCategoryInfoList_ = java.util.Collections.unmodifiableList(updateCategoryInfoList_);
          bitField0_ = (bitField0_ & ~0x00000020);
        }
        result.updateCategoryInfoList_ = updateCategoryInfoList_;
      } else {
        result.updateCategoryInfoList_ = updateCategoryInfoListBuilder_.build();
      }
    }

    private void buildPartial0(tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.ProductChangeMessage result) {
      int from_bitField0_ = bitField0_;
      int to_bitField0_ = 0;
      if (((from_bitField0_ & 0x00000001) != 0)) {
        result.common_ = commonBuilder_ == null
            ? common_
            : commonBuilder_.build();
        to_bitField0_ |= 0x00000001;
      }
      if (((from_bitField0_ & 0x00000002) != 0)) {
        result.updateTimestamp_ = updateTimestamp_;
      }
      if (((from_bitField0_ & 0x00000004) != 0)) {
        result.updateToast_ = updateToast_;
      }
      if (((from_bitField0_ & 0x00000010) != 0)) {
        result.total_ = total_;
      }
      result.bitField0_ |= to_bitField0_;
    }

    @java.lang.Override
    public Builder clone() {
      return super.clone();
    }
    @java.lang.Override
    public Builder setField(
        com.google.protobuf.Descriptors.FieldDescriptor field,
        java.lang.Object value) {
      return super.setField(field, value);
    }
    @java.lang.Override
    public Builder clearField(
        com.google.protobuf.Descriptors.FieldDescriptor field) {
      return super.clearField(field);
    }
    @java.lang.Override
    public Builder clearOneof(
        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
      return super.clearOneof(oneof);
    }
    @java.lang.Override
    public Builder setRepeatedField(
        com.google.protobuf.Descriptors.FieldDescriptor field,
        int index, java.lang.Object value) {
      return super.setRepeatedField(field, index, value);
    }
    @java.lang.Override
    public Builder addRepeatedField(
        com.google.protobuf.Descriptors.FieldDescriptor field,
        java.lang.Object value) {
      return super.addRepeatedField(field, value);
    }
    @java.lang.Override
    public Builder mergeFrom(com.google.protobuf.Message other) {
      if (other instanceof tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.ProductChangeMessage) {
        return mergeFrom((tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.ProductChangeMessage)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.ProductChangeMessage other) {
      if (other == tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.ProductChangeMessage.getDefaultInstance()) return this;
      if (other.hasCommon()) {
        mergeCommon(other.getCommon());
      }
      if (other.getUpdateTimestamp() != 0L) {
        setUpdateTimestamp(other.getUpdateTimestamp());
      }
      if (!other.getUpdateToast().isEmpty()) {
        updateToast_ = other.updateToast_;
        bitField0_ |= 0x00000004;
        onChanged();
      }
      if (updateProductInfoListBuilder_ == null) {
        if (!other.updateProductInfoList_.isEmpty()) {
          if (updateProductInfoList_.isEmpty()) {
            updateProductInfoList_ = other.updateProductInfoList_;
            bitField0_ = (bitField0_ & ~0x00000008);
          } else {
            ensureUpdateProductInfoListIsMutable();
            updateProductInfoList_.addAll(other.updateProductInfoList_);
          }
          onChanged();
        }
      } else {
        if (!other.updateProductInfoList_.isEmpty()) {
          if (updateProductInfoListBuilder_.isEmpty()) {
            updateProductInfoListBuilder_.dispose();
            updateProductInfoListBuilder_ = null;
            updateProductInfoList_ = other.updateProductInfoList_;
            bitField0_ = (bitField0_ & ~0x00000008);
            updateProductInfoListBuilder_ = 
              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
                 getUpdateProductInfoListFieldBuilder() : null;
          } else {
            updateProductInfoListBuilder_.addAllMessages(other.updateProductInfoList_);
          }
        }
      }
      if (other.getTotal() != 0L) {
        setTotal(other.getTotal());
      }
      if (updateCategoryInfoListBuilder_ == null) {
        if (!other.updateCategoryInfoList_.isEmpty()) {
          if (updateCategoryInfoList_.isEmpty()) {
            updateCategoryInfoList_ = other.updateCategoryInfoList_;
            bitField0_ = (bitField0_ & ~0x00000020);
          } else {
            ensureUpdateCategoryInfoListIsMutable();
            updateCategoryInfoList_.addAll(other.updateCategoryInfoList_);
          }
          onChanged();
        }
      } else {
        if (!other.updateCategoryInfoList_.isEmpty()) {
          if (updateCategoryInfoListBuilder_.isEmpty()) {
            updateCategoryInfoListBuilder_.dispose();
            updateCategoryInfoListBuilder_ = null;
            updateCategoryInfoList_ = other.updateCategoryInfoList_;
            bitField0_ = (bitField0_ & ~0x00000020);
            updateCategoryInfoListBuilder_ = 
              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
                 getUpdateCategoryInfoListFieldBuilder() : null;
          } else {
            updateCategoryInfoListBuilder_.addAllMessages(other.updateCategoryInfoList_);
          }
        }
      }
      this.mergeUnknownFields(other.getUnknownFields());
      onChanged();
      return this;
    }

    @java.lang.Override
    public final boolean isInitialized() {
      return true;
    }

    @java.lang.Override
    public Builder mergeFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      if (extensionRegistry == null) {
        throw new java.lang.NullPointerException();
      }
      try {
        boolean done = false;
        while (!done) {
          int tag = input.readTag();
          switch (tag) {
            case 0:
              done = true;
              break;
            case 10: {
              input.readMessage(
                  getCommonFieldBuilder().getBuilder(),
                  extensionRegistry);
              bitField0_ |= 0x00000001;
              break;
            } // case 10
            case 16: {
              updateTimestamp_ = input.readInt64();
              bitField0_ |= 0x00000002;
              break;
            } // case 16
            case 26: {
              updateToast_ = input.readStringRequireUtf8();
              bitField0_ |= 0x00000004;
              break;
            } // case 26
            case 34: {
              tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.ProductInfo m =
                  input.readMessage(
                      tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.ProductInfo.parser(),
                      extensionRegistry);
              if (updateProductInfoListBuilder_ == null) {
                ensureUpdateProductInfoListIsMutable();
                updateProductInfoList_.add(m);
              } else {
                updateProductInfoListBuilder_.addMessage(m);
              }
              break;
            } // case 34
            case 40: {
              total_ = input.readInt64();
              bitField0_ |= 0x00000010;
              break;
            } // case 40
            case 66: {
              tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.CategoryInfo m =
                  input.readMessage(
                      tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.CategoryInfo.parser(),
                      extensionRegistry);
              if (updateCategoryInfoListBuilder_ == null) {
                ensureUpdateCategoryInfoListIsMutable();
                updateCategoryInfoList_.add(m);
              } else {
                updateCategoryInfoListBuilder_.addMessage(m);
              }
              break;
            } // case 66
            default: {
              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
                done = true; // was an endgroup tag
              }
              break;
            } // default:
          } // switch (tag)
        } // while (!done)
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.unwrapIOException();
      } finally {
        onChanged();
      } // finally
      return this;
    }
    private int bitField0_;

    private tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.Common common_;
    private com.google.protobuf.SingleFieldBuilderV3<
        tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.Common, tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.Common.Builder, tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.CommonOrBuilder> commonBuilder_;
    /**
     * <code>.Common common = 1;</code>
     * @return Whether the common field is set.
     */
    public boolean hasCommon() {
      return ((bitField0_ & 0x00000001) != 0);
    }
    /**
     * <code>.Common common = 1;</code>
     * @return The common.
     */
    public tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.Common getCommon() {
      if (commonBuilder_ == null) {
        return common_ == null ? tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.Common.getDefaultInstance() : common_;
      } else {
        return commonBuilder_.getMessage();
      }
    }
    /**
     * <code>.Common common = 1;</code>
     */
    public Builder setCommon(tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.Common value) {
      if (commonBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        common_ = value;
      } else {
        commonBuilder_.setMessage(value);
      }
      bitField0_ |= 0x00000001;
      onChanged();
      return this;
    }
    /**
     * <code>.Common common = 1;</code>
     */
    public Builder setCommon(
        tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.Common.Builder builderForValue) {
      if (commonBuilder_ == null) {
        common_ = builderForValue.build();
      } else {
        commonBuilder_.setMessage(builderForValue.build());
      }
      bitField0_ |= 0x00000001;
      onChanged();
      return this;
    }
    /**
     * <code>.Common common = 1;</code>
     */
    public Builder mergeCommon(tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.Common value) {
      if (commonBuilder_ == null) {
        if (((bitField0_ & 0x00000001) != 0) &&
          common_ != null &&
          common_ != tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.Common.getDefaultInstance()) {
          getCommonBuilder().mergeFrom(value);
        } else {
          common_ = value;
        }
      } else {
        commonBuilder_.mergeFrom(value);
      }
      if (common_ != null) {
        bitField0_ |= 0x00000001;
        onChanged();
      }
      return this;
    }
    /**
     * <code>.Common common = 1;</code>
     */
    public Builder clearCommon() {
      bitField0_ = (bitField0_ & ~0x00000001);
      common_ = null;
      if (commonBuilder_ != null) {
        commonBuilder_.dispose();
        commonBuilder_ = null;
      }
      onChanged();
      return this;
    }
    /**
     * <code>.Common common = 1;</code>
     */
    public tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.Common.Builder getCommonBuilder() {
      bitField0_ |= 0x00000001;
      onChanged();
      return getCommonFieldBuilder().getBuilder();
    }
    /**
     * <code>.Common common = 1;</code>
     */
    public tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.CommonOrBuilder getCommonOrBuilder() {
      if (commonBuilder_ != null) {
        return commonBuilder_.getMessageOrBuilder();
      } else {
        return common_ == null ?
            tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.Common.getDefaultInstance() : common_;
      }
    }
    /**
     * <code>.Common common = 1;</code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.Common, tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.Common.Builder, tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.CommonOrBuilder> 
        getCommonFieldBuilder() {
      if (commonBuilder_ == null) {
        commonBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.Common, tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.Common.Builder, tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.CommonOrBuilder>(
                getCommon(),
                getParentForChildren(),
                isClean());
        common_ = null;
      }
      return commonBuilder_;
    }

    private long updateTimestamp_ ;
    /**
     * <code>int64 updateTimestamp = 2;</code>
     * @return The updateTimestamp.
     */
    @java.lang.Override
    public long getUpdateTimestamp() {
      return updateTimestamp_;
    }
    /**
     * <code>int64 updateTimestamp = 2;</code>
     * @param value The updateTimestamp to set.
     * @return This builder for chaining.
     */
    public Builder setUpdateTimestamp(long value) {

      updateTimestamp_ = value;
      bitField0_ |= 0x00000002;
      onChanged();
      return this;
    }
    /**
     * <code>int64 updateTimestamp = 2;</code>
     * @return This builder for chaining.
     */
    public Builder clearUpdateTimestamp() {
      bitField0_ = (bitField0_ & ~0x00000002);
      updateTimestamp_ = 0L;
      onChanged();
      return this;
    }

    private java.lang.Object updateToast_ = "";
    /**
     * <code>string updateToast = 3;</code>
     * @return The updateToast.
     */
    public java.lang.String getUpdateToast() {
      java.lang.Object ref = updateToast_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        updateToast_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string updateToast = 3;</code>
     * @return The bytes for updateToast.
     */
    public com.google.protobuf.ByteString
        getUpdateToastBytes() {
      java.lang.Object ref = updateToast_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        updateToast_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string updateToast = 3;</code>
     * @param value The updateToast to set.
     * @return This builder for chaining.
     */
    public Builder setUpdateToast(
        java.lang.String value) {
      if (value == null) { throw new NullPointerException(); }
      updateToast_ = value;
      bitField0_ |= 0x00000004;
      onChanged();
      return this;
    }
    /**
     * <code>string updateToast = 3;</code>
     * @return This builder for chaining.
     */
    public Builder clearUpdateToast() {
      updateToast_ = getDefaultInstance().getUpdateToast();
      bitField0_ = (bitField0_ & ~0x00000004);
      onChanged();
      return this;
    }
    /**
     * <code>string updateToast = 3;</code>
     * @param value The bytes for updateToast to set.
     * @return This builder for chaining.
     */
    public Builder setUpdateToastBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) { throw new NullPointerException(); }
      checkByteStringIsUtf8(value);
      updateToast_ = value;
      bitField0_ |= 0x00000004;
      onChanged();
      return this;
    }

    private java.util.List<tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.ProductInfo> updateProductInfoList_ =
      java.util.Collections.emptyList();
    private void ensureUpdateProductInfoListIsMutable() {
      if (!((bitField0_ & 0x00000008) != 0)) {
        updateProductInfoList_ = new java.util.ArrayList<tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.ProductInfo>(updateProductInfoList_);
        bitField0_ |= 0x00000008;
       }
    }

    private com.google.protobuf.RepeatedFieldBuilderV3<
        tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.ProductInfo, tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.ProductInfo.Builder, tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.ProductInfoOrBuilder> updateProductInfoListBuilder_;

    /**
     * <code>repeated .ProductInfo updateProductInfoList = 4;</code>
     */
    public java.util.List<tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.ProductInfo> getUpdateProductInfoListList() {
      if (updateProductInfoListBuilder_ == null) {
        return java.util.Collections.unmodifiableList(updateProductInfoList_);
      } else {
        return updateProductInfoListBuilder_.getMessageList();
      }
    }
    /**
     * <code>repeated .ProductInfo updateProductInfoList = 4;</code>
     */
    public int getUpdateProductInfoListCount() {
      if (updateProductInfoListBuilder_ == null) {
        return updateProductInfoList_.size();
      } else {
        return updateProductInfoListBuilder_.getCount();
      }
    }
    /**
     * <code>repeated .ProductInfo updateProductInfoList = 4;</code>
     */
    public tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.ProductInfo getUpdateProductInfoList(int index) {
      if (updateProductInfoListBuilder_ == null) {
        return updateProductInfoList_.get(index);
      } else {
        return updateProductInfoListBuilder_.getMessage(index);
      }
    }
    /**
     * <code>repeated .ProductInfo updateProductInfoList = 4;</code>
     */
    public Builder setUpdateProductInfoList(
        int index, tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.ProductInfo value) {
      if (updateProductInfoListBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureUpdateProductInfoListIsMutable();
        updateProductInfoList_.set(index, value);
        onChanged();
      } else {
        updateProductInfoListBuilder_.setMessage(index, value);
      }
      return this;
    }
    /**
     * <code>repeated .ProductInfo updateProductInfoList = 4;</code>
     */
    public Builder setUpdateProductInfoList(
        int index, tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.ProductInfo.Builder builderForValue) {
      if (updateProductInfoListBuilder_ == null) {
        ensureUpdateProductInfoListIsMutable();
        updateProductInfoList_.set(index, builderForValue.build());
        onChanged();
      } else {
        updateProductInfoListBuilder_.setMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     * <code>repeated .ProductInfo updateProductInfoList = 4;</code>
     */
    public Builder addUpdateProductInfoList(tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.ProductInfo value) {
      if (updateProductInfoListBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureUpdateProductInfoListIsMutable();
        updateProductInfoList_.add(value);
        onChanged();
      } else {
        updateProductInfoListBuilder_.addMessage(value);
      }
      return this;
    }
    /**
     * <code>repeated .ProductInfo updateProductInfoList = 4;</code>
     */
    public Builder addUpdateProductInfoList(
        int index, tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.ProductInfo value) {
      if (updateProductInfoListBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureUpdateProductInfoListIsMutable();
        updateProductInfoList_.add(index, value);
        onChanged();
      } else {
        updateProductInfoListBuilder_.addMessage(index, value);
      }
      return this;
    }
    /**
     * <code>repeated .ProductInfo updateProductInfoList = 4;</code>
     */
    public Builder addUpdateProductInfoList(
        tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.ProductInfo.Builder builderForValue) {
      if (updateProductInfoListBuilder_ == null) {
        ensureUpdateProductInfoListIsMutable();
        updateProductInfoList_.add(builderForValue.build());
        onChanged();
      } else {
        updateProductInfoListBuilder_.addMessage(builderForValue.build());
      }
      return this;
    }
    /**
     * <code>repeated .ProductInfo updateProductInfoList = 4;</code>
     */
    public Builder addUpdateProductInfoList(
        int index, tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.ProductInfo.Builder builderForValue) {
      if (updateProductInfoListBuilder_ == null) {
        ensureUpdateProductInfoListIsMutable();
        updateProductInfoList_.add(index, builderForValue.build());
        onChanged();
      } else {
        updateProductInfoListBuilder_.addMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     * <code>repeated .ProductInfo updateProductInfoList = 4;</code>
     */
    public Builder addAllUpdateProductInfoList(
        java.lang.Iterable<? extends tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.ProductInfo> values) {
      if (updateProductInfoListBuilder_ == null) {
        ensureUpdateProductInfoListIsMutable();
        com.google.protobuf.AbstractMessageLite.Builder.addAll(
            values, updateProductInfoList_);
        onChanged();
      } else {
        updateProductInfoListBuilder_.addAllMessages(values);
      }
      return this;
    }
    /**
     * <code>repeated .ProductInfo updateProductInfoList = 4;</code>
     */
    public Builder clearUpdateProductInfoList() {
      if (updateProductInfoListBuilder_ == null) {
        updateProductInfoList_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000008);
        onChanged();
      } else {
        updateProductInfoListBuilder_.clear();
      }
      return this;
    }
    /**
     * <code>repeated .ProductInfo updateProductInfoList = 4;</code>
     */
    public Builder removeUpdateProductInfoList(int index) {
      if (updateProductInfoListBuilder_ == null) {
        ensureUpdateProductInfoListIsMutable();
        updateProductInfoList_.remove(index);
        onChanged();
      } else {
        updateProductInfoListBuilder_.remove(index);
      }
      return this;
    }
    /**
     * <code>repeated .ProductInfo updateProductInfoList = 4;</code>
     */
    public tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.ProductInfo.Builder getUpdateProductInfoListBuilder(
        int index) {
      return getUpdateProductInfoListFieldBuilder().getBuilder(index);
    }
    /**
     * <code>repeated .ProductInfo updateProductInfoList = 4;</code>
     */
    public tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.ProductInfoOrBuilder getUpdateProductInfoListOrBuilder(
        int index) {
      if (updateProductInfoListBuilder_ == null) {
        return updateProductInfoList_.get(index);  } else {
        return updateProductInfoListBuilder_.getMessageOrBuilder(index);
      }
    }
    /**
     * <code>repeated .ProductInfo updateProductInfoList = 4;</code>
     */
    public java.util.List<? extends tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.ProductInfoOrBuilder> 
         getUpdateProductInfoListOrBuilderList() {
      if (updateProductInfoListBuilder_ != null) {
        return updateProductInfoListBuilder_.getMessageOrBuilderList();
      } else {
        return java.util.Collections.unmodifiableList(updateProductInfoList_);
      }
    }
    /**
     * <code>repeated .ProductInfo updateProductInfoList = 4;</code>
     */
    public tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.ProductInfo.Builder addUpdateProductInfoListBuilder() {
      return getUpdateProductInfoListFieldBuilder().addBuilder(
          tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.ProductInfo.getDefaultInstance());
    }
    /**
     * <code>repeated .ProductInfo updateProductInfoList = 4;</code>
     */
    public tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.ProductInfo.Builder addUpdateProductInfoListBuilder(
        int index) {
      return getUpdateProductInfoListFieldBuilder().addBuilder(
          index, tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.ProductInfo.getDefaultInstance());
    }
    /**
     * <code>repeated .ProductInfo updateProductInfoList = 4;</code>
     */
    public java.util.List<tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.ProductInfo.Builder> 
         getUpdateProductInfoListBuilderList() {
      return getUpdateProductInfoListFieldBuilder().getBuilderList();
    }
    private com.google.protobuf.RepeatedFieldBuilderV3<
        tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.ProductInfo, tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.ProductInfo.Builder, tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.ProductInfoOrBuilder> 
        getUpdateProductInfoListFieldBuilder() {
      if (updateProductInfoListBuilder_ == null) {
        updateProductInfoListBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
            tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.ProductInfo, tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.ProductInfo.Builder, tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.ProductInfoOrBuilder>(
                updateProductInfoList_,
                ((bitField0_ & 0x00000008) != 0),
                getParentForChildren(),
                isClean());
        updateProductInfoList_ = null;
      }
      return updateProductInfoListBuilder_;
    }

    private long total_ ;
    /**
     * <code>int64 total = 5;</code>
     * @return The total.
     */
    @java.lang.Override
    public long getTotal() {
      return total_;
    }
    /**
     * <code>int64 total = 5;</code>
     * @param value The total to set.
     * @return This builder for chaining.
     */
    public Builder setTotal(long value) {

      total_ = value;
      bitField0_ |= 0x00000010;
      onChanged();
      return this;
    }
    /**
     * <code>int64 total = 5;</code>
     * @return This builder for chaining.
     */
    public Builder clearTotal() {
      bitField0_ = (bitField0_ & ~0x00000010);
      total_ = 0L;
      onChanged();
      return this;
    }

    private java.util.List<tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.CategoryInfo> updateCategoryInfoList_ =
      java.util.Collections.emptyList();
    private void ensureUpdateCategoryInfoListIsMutable() {
      if (!((bitField0_ & 0x00000020) != 0)) {
        updateCategoryInfoList_ = new java.util.ArrayList<tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.CategoryInfo>(updateCategoryInfoList_);
        bitField0_ |= 0x00000020;
       }
    }

    private com.google.protobuf.RepeatedFieldBuilderV3<
        tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.CategoryInfo, tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.CategoryInfo.Builder, tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.CategoryInfoOrBuilder> updateCategoryInfoListBuilder_;

    /**
     * <code>repeated .CategoryInfo updateCategoryInfoList = 8;</code>
     */
    public java.util.List<tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.CategoryInfo> getUpdateCategoryInfoListList() {
      if (updateCategoryInfoListBuilder_ == null) {
        return java.util.Collections.unmodifiableList(updateCategoryInfoList_);
      } else {
        return updateCategoryInfoListBuilder_.getMessageList();
      }
    }
    /**
     * <code>repeated .CategoryInfo updateCategoryInfoList = 8;</code>
     */
    public int getUpdateCategoryInfoListCount() {
      if (updateCategoryInfoListBuilder_ == null) {
        return updateCategoryInfoList_.size();
      } else {
        return updateCategoryInfoListBuilder_.getCount();
      }
    }
    /**
     * <code>repeated .CategoryInfo updateCategoryInfoList = 8;</code>
     */
    public tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.CategoryInfo getUpdateCategoryInfoList(int index) {
      if (updateCategoryInfoListBuilder_ == null) {
        return updateCategoryInfoList_.get(index);
      } else {
        return updateCategoryInfoListBuilder_.getMessage(index);
      }
    }
    /**
     * <code>repeated .CategoryInfo updateCategoryInfoList = 8;</code>
     */
    public Builder setUpdateCategoryInfoList(
        int index, tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.CategoryInfo value) {
      if (updateCategoryInfoListBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureUpdateCategoryInfoListIsMutable();
        updateCategoryInfoList_.set(index, value);
        onChanged();
      } else {
        updateCategoryInfoListBuilder_.setMessage(index, value);
      }
      return this;
    }
    /**
     * <code>repeated .CategoryInfo updateCategoryInfoList = 8;</code>
     */
    public Builder setUpdateCategoryInfoList(
        int index, tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.CategoryInfo.Builder builderForValue) {
      if (updateCategoryInfoListBuilder_ == null) {
        ensureUpdateCategoryInfoListIsMutable();
        updateCategoryInfoList_.set(index, builderForValue.build());
        onChanged();
      } else {
        updateCategoryInfoListBuilder_.setMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     * <code>repeated .CategoryInfo updateCategoryInfoList = 8;</code>
     */
    public Builder addUpdateCategoryInfoList(tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.CategoryInfo value) {
      if (updateCategoryInfoListBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureUpdateCategoryInfoListIsMutable();
        updateCategoryInfoList_.add(value);
        onChanged();
      } else {
        updateCategoryInfoListBuilder_.addMessage(value);
      }
      return this;
    }
    /**
     * <code>repeated .CategoryInfo updateCategoryInfoList = 8;</code>
     */
    public Builder addUpdateCategoryInfoList(
        int index, tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.CategoryInfo value) {
      if (updateCategoryInfoListBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureUpdateCategoryInfoListIsMutable();
        updateCategoryInfoList_.add(index, value);
        onChanged();
      } else {
        updateCategoryInfoListBuilder_.addMessage(index, value);
      }
      return this;
    }
    /**
     * <code>repeated .CategoryInfo updateCategoryInfoList = 8;</code>
     */
    public Builder addUpdateCategoryInfoList(
        tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.CategoryInfo.Builder builderForValue) {
      if (updateCategoryInfoListBuilder_ == null) {
        ensureUpdateCategoryInfoListIsMutable();
        updateCategoryInfoList_.add(builderForValue.build());
        onChanged();
      } else {
        updateCategoryInfoListBuilder_.addMessage(builderForValue.build());
      }
      return this;
    }
    /**
     * <code>repeated .CategoryInfo updateCategoryInfoList = 8;</code>
     */
    public Builder addUpdateCategoryInfoList(
        int index, tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.CategoryInfo.Builder builderForValue) {
      if (updateCategoryInfoListBuilder_ == null) {
        ensureUpdateCategoryInfoListIsMutable();
        updateCategoryInfoList_.add(index, builderForValue.build());
        onChanged();
      } else {
        updateCategoryInfoListBuilder_.addMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     * <code>repeated .CategoryInfo updateCategoryInfoList = 8;</code>
     */
    public Builder addAllUpdateCategoryInfoList(
        java.lang.Iterable<? extends tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.CategoryInfo> values) {
      if (updateCategoryInfoListBuilder_ == null) {
        ensureUpdateCategoryInfoListIsMutable();
        com.google.protobuf.AbstractMessageLite.Builder.addAll(
            values, updateCategoryInfoList_);
        onChanged();
      } else {
        updateCategoryInfoListBuilder_.addAllMessages(values);
      }
      return this;
    }
    /**
     * <code>repeated .CategoryInfo updateCategoryInfoList = 8;</code>
     */
    public Builder clearUpdateCategoryInfoList() {
      if (updateCategoryInfoListBuilder_ == null) {
        updateCategoryInfoList_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000020);
        onChanged();
      } else {
        updateCategoryInfoListBuilder_.clear();
      }
      return this;
    }
    /**
     * <code>repeated .CategoryInfo updateCategoryInfoList = 8;</code>
     */
    public Builder removeUpdateCategoryInfoList(int index) {
      if (updateCategoryInfoListBuilder_ == null) {
        ensureUpdateCategoryInfoListIsMutable();
        updateCategoryInfoList_.remove(index);
        onChanged();
      } else {
        updateCategoryInfoListBuilder_.remove(index);
      }
      return this;
    }
    /**
     * <code>repeated .CategoryInfo updateCategoryInfoList = 8;</code>
     */
    public tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.CategoryInfo.Builder getUpdateCategoryInfoListBuilder(
        int index) {
      return getUpdateCategoryInfoListFieldBuilder().getBuilder(index);
    }
    /**
     * <code>repeated .CategoryInfo updateCategoryInfoList = 8;</code>
     */
    public tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.CategoryInfoOrBuilder getUpdateCategoryInfoListOrBuilder(
        int index) {
      if (updateCategoryInfoListBuilder_ == null) {
        return updateCategoryInfoList_.get(index);  } else {
        return updateCategoryInfoListBuilder_.getMessageOrBuilder(index);
      }
    }
    /**
     * <code>repeated .CategoryInfo updateCategoryInfoList = 8;</code>
     */
    public java.util.List<? extends tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.CategoryInfoOrBuilder> 
         getUpdateCategoryInfoListOrBuilderList() {
      if (updateCategoryInfoListBuilder_ != null) {
        return updateCategoryInfoListBuilder_.getMessageOrBuilderList();
      } else {
        return java.util.Collections.unmodifiableList(updateCategoryInfoList_);
      }
    }
    /**
     * <code>repeated .CategoryInfo updateCategoryInfoList = 8;</code>
     */
    public tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.CategoryInfo.Builder addUpdateCategoryInfoListBuilder() {
      return getUpdateCategoryInfoListFieldBuilder().addBuilder(
          tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.CategoryInfo.getDefaultInstance());
    }
    /**
     * <code>repeated .CategoryInfo updateCategoryInfoList = 8;</code>
     */
    public tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.CategoryInfo.Builder addUpdateCategoryInfoListBuilder(
        int index) {
      return getUpdateCategoryInfoListFieldBuilder().addBuilder(
          index, tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.CategoryInfo.getDefaultInstance());
    }
    /**
     * <code>repeated .CategoryInfo updateCategoryInfoList = 8;</code>
     */
    public java.util.List<tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.CategoryInfo.Builder> 
         getUpdateCategoryInfoListBuilderList() {
      return getUpdateCategoryInfoListFieldBuilder().getBuilderList();
    }
    private com.google.protobuf.RepeatedFieldBuilderV3<
        tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.CategoryInfo, tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.CategoryInfo.Builder, tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.CategoryInfoOrBuilder> 
        getUpdateCategoryInfoListFieldBuilder() {
      if (updateCategoryInfoListBuilder_ == null) {
        updateCategoryInfoListBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
            tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.CategoryInfo, tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.CategoryInfo.Builder, tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.CategoryInfoOrBuilder>(
                updateCategoryInfoList_,
                ((bitField0_ & 0x00000020) != 0),
                getParentForChildren(),
                isClean());
        updateCategoryInfoList_ = null;
      }
      return updateCategoryInfoListBuilder_;
    }
    @java.lang.Override
    public final Builder setUnknownFields(
        final com.google.protobuf.UnknownFieldSet unknownFields) {
      return super.setUnknownFields(unknownFields);
    }

    @java.lang.Override
    public final Builder mergeUnknownFields(
        final com.google.protobuf.UnknownFieldSet unknownFields) {
      return super.mergeUnknownFields(unknownFields);
    }


    // @@protoc_insertion_point(builder_scope:ProductChangeMessage)
  }

  // @@protoc_insertion_point(class_scope:ProductChangeMessage)
  private static final tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.ProductChangeMessage DEFAULT_INSTANCE;
  static {
    DEFAULT_INSTANCE = new tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.ProductChangeMessage();
  }

  public static tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.ProductChangeMessage getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

  private static final com.google.protobuf.Parser<ProductChangeMessage>
      PARSER = new com.google.protobuf.AbstractParser<ProductChangeMessage>() {
    @java.lang.Override
    public ProductChangeMessage parsePartialFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      Builder builder = newBuilder();
      try {
        builder.mergeFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.setUnfinishedMessage(builder.buildPartial());
      } catch (com.google.protobuf.UninitializedMessageException e) {
        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
      } catch (java.io.IOException e) {
        throw new com.google.protobuf.InvalidProtocolBufferException(e)
            .setUnfinishedMessage(builder.buildPartial());
      }
      return builder.buildPartial();
    }
  };

  public static com.google.protobuf.Parser<ProductChangeMessage> parser() {
    return PARSER;
  }

  @java.lang.Override
  public com.google.protobuf.Parser<ProductChangeMessage> getParserForType() {
    return PARSER;
  }

  @java.lang.Override
  public tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.ProductChangeMessage getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }

}

